<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Image and Comment</title>
    <link rel="stylesheet" href="a.css">
    <style>
        header {
            background-color: aqua  ;
        }
    </style>
</head>
<body>
    <header> hello world </header>
    <div class="container">
        <div class="image-selector">
            <label>头像:</label>
            <div class="images">
                <img src="ml.png" alt="image1" class="image" onclick="selectImage(this)">
                <img src="dxl.png" alt="image2" class="image" onclick="selectImage(this)">
                <img src="yctf.png" alt="image3" class="image" onclick="selectImage(this)">
                <img src="az.png" alt="image4" class="image" onclick="selectImage(this)">
                <img src="bt.png" alt="image5" class="image" onclick="selectImage(this)">
                <img src="nl.png" alt="image6" class="image" onclick="selectImage(this)">
            </div>
        </div>
        <textarea id="comment" placeholder="请输入评论..." oninput="updateCharacterCount()"></textarea>
        <div>
            <button onclick="submitComment()">发表</button>
            <span id="charCount">还可以输入180个字符,最多180个</span>
        </div>
        <div class="comments" id="comments"></div>
    </div>
    <script src="a.js"></script>
</body>
</html>
